<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>联系人添加</title>
  <link href="__PUBLIC__/css/admin/reset.css" rel="stylesheet" type="text/css">
  <link href="__PUBLIC__/css/admin/zh-cn-system.css" rel="stylesheet" type="text/css">
  <link href="__PUBLIC__/css/admin/table_form.css" rel="stylesheet" type="text/css">
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/admin/style/zh-cn-styles1.css" title="styles1" media="screen">
  <link rel="alternate stylesheet" type="text/css" href="__PUBLIC__/css/admin/style/zh-cn-styles2.css" title="styles2" media="screen">
  <link rel="alternate stylesheet" type="text/css" href="__PUBLIC__/css/admin/style/zh-cn-styles3.css" title="styles3" media="screen">
  <link rel="alternate stylesheet" type="text/css" href="__PUBLIC__/css/admin/style/zh-cn-styles4.css" title="styles4" media="screen">
  <script type="text/javascript" src="__PUBLIC__/js/admin/jquery.min.js"></script>
  <script type="text/javascript" src="__PUBLIC__/js/admin/jquery.cookie.js"></script>
  <script type="text/javascript" src="__PUBLIC__/js/admin/styleswitch.js"></script>
  <script type="text/javascript" src="__PUBLIC__/js/admin/admin_common.js"></script>
  <script language="javascript" type="text/javascript" src="__PUBLIC__/js/admin/formvalidator.js" charset="UTF-8"></script>
  <script language="javascript" type="text/javascript" src="__PUBLIC__/js/admin/formvalidatorregex.js" charset="UTF-8"></script>
</head>
<body>
  <div class="subnav">
    <div class="content-menu ib-a blue line-x">
      <a class="add fb" href="__MODULE__/Contact/add"><em>添加联系人</em></a>&nbsp;&nbsp;&nbsp;<a class="" href="__MODULE__/Contact/index"><em>联系管理</em></a>
    </div>
  </div>
  <style type="text/css">
  html{_overflow-y:scroll}
  </style>
  <div class="pad-lr-10">
      <form  action="__MODULE__/Contact/add" method="post" onsubmit="return chked()">

          <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
              <tr>
                  <td width="10%" align="right">联系部门：</td>
                  <td width="90%">
                      <input type="text" class="input-text" name="contact_way" id="contact" value="" size="40" required/>
                  </td>
              </tr>
              <tr>
                  <td width="10%" align="right">联系人：</td>
                  <td width="90%">
                      <input type="text"  class="input-text" name="linkman" id="linkman" value="" size="40" required/>
                  </td>
              </tr>
              <tr>
                  <td width="10%" align="right">电话：</td>
                  <td width="90%">
                      <input type="text"  class="input-text" name="tel" id="tel" value="" size="40" required/>
                  </td>
              </tr>
              <tr>
                  <td width="10%" align="right">QQ号码：</td>
                  <td width="90%">
                      <input type="text"  class="input-text" name="qq" id="qq" value="" size="40" required/>
                  </td>
              </tr>
              <tr>
                  <td width="10%" align="right">邮箱：</td>
                  <td width="90%">
                      <input type="email"  class="input-text" name="email" id="email" value="" size="40" required/>
                  </td>
              </tr>

          </table>
          <div class="bk15"></div>
          <div class="btn">
              <input type="submit" name="dosubmit" id="dosubmit" value="提交" class='button'>&nbsp;<input type="reset" value="重置" class='button'>
          </div>
      </form>
  </div>
  <script type="text/javascript">

      function chked(){
          if($("#chanel").val().length<=0){
              return false;
          }
          if($("#price").val()<10){
              return false;
          }
          if($("#url").val().length<=0){
              return false;
          }
      }

  $(function(){


      // .ajaxValidator({type:"get",url:"__CONTROLLER__/public_check_poster",data:"",datatype:"html",cached:false,async:'true',success : function(data) {if( data == "1" ) { return true; } else { return false; } }, error: function(){alert("服务器没有返回数据，可能服务器忙，请重试");}, onerror : "该广告已存在", onwait : "正进行合法性校验..."});
  });
  </script>
</body>
</html>